package com.example.entity;

public class DietRecord {
    private int dietrecordid;//饮食记录id
    private User user;//用户id
    private FoodsRecipe foodsrecipe;//食物成品id
    private String eattime;//用餐时间
    private int num;//用餐数量
    private String totalcalories;//总摄入热量
    private String createtime;//创建时间

    @Override
    public String toString() {
        return "DietRecord{" +
                "dietrecordid=" + dietrecordid +
                ", user=" + user +
                ", foodsrecipe=" + foodsrecipe +
                ", eattime='" + eattime + '\'' +
                ", num=" + num +
                ", totalcalories='" + totalcalories + '\'' +
                ", createtime='" + createtime + '\'' +
                '}';
    }

    public int getDietrecordid() {
        return dietrecordid;
    }

    public void setDietrecordid(int dietrecordid) {
        this.dietrecordid = dietrecordid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public FoodsRecipe getFoodsrecipe() {
        return foodsrecipe;
    }

    public void setFoodsrecipe(FoodsRecipe foodsrecipe) {
        this.foodsrecipe = foodsrecipe;
    }

    public String getEattime() {
        return eattime;
    }

    public void setEattime(String eattime) {
        this.eattime = eattime;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getTotalcalories() {
        return totalcalories;
    }

    public void setTotalcalories(String totalcalories) {
        this.totalcalories = totalcalories;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
}
